package com.stylefeng.guns.common.persistence.dao;

import com.baomidou.mybatisplus.plugins.Page;
import com.stylefeng.guns.common.persistence.model.TBill;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author stylefeng123
 * @since 2018-03-07
 */
public interface TBillMapper extends BaseMapper<TBill> {

    List<Map> billMap(@Param("order_id") String order_id);
    List<Map> billZZMap(@Param("order_id") String order_id);

    /**
     * 现结订单
     * @param tTrainId
     * @return
     */
    List<Map> selectXJBills(Integer tTrainId);

    List<Map<String,Object>> selectAccountingList(Page<Map<String, Object>> page, Map param);

    TBill selectListMinUnCheckBill(Integer dotId);

    List<Map<String,Object>> selectAccountingRecordList(Page<Map<String, Object>> page, Map param);

    List<Map<String,Object>> selectAccountingRecordDetailList(Page<Map<String, Object>> page, Map param);

    List<TBill> selectBillByOrderId(String order_id);

    void recordBackUp(String order_id);
}
